package com.yaoxiaowen.project2.test.database.test_realm;

import android.widget.RelativeLayout;

import java.util.List;

import io.realm.RealmList;
import io.realm.RealmObject;


/**
 * YaoWen(43194) create at tongcheng work pc,
 * time:  2017/1/18 18:07  qq:2669932513
 */
public class PersonBean  extends RealmObject{
    private String name;
    private RealmList<DogBean> dogs;

    public PersonBean() {
    }

    public PersonBean(String name) {
        this.name = name;
    }

    public PersonBean(String name, RealmList<DogBean> dogs) {
        this.name = name;
        this.dogs = dogs;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public List<DogBean> getDogs() {
        return dogs;
    }

    public void setDogs(RealmList<DogBean> dogs) {
        this.dogs = dogs;
    }

    @Override
    public String toString() {
        return "PersonBean{" +
                ", name='" + name + '\'' +
                ", dogs=" + dogs +
                '}';
    }
}
